<?php

$name_event = array(
		'name'	=> 'name_event',
		'id'	=> 'name_event',
		'value' => set_value('name_event'),		
		'size'	=> 30,
	);

$content = array(
		'name'	=> 'content',
		'id'	=> 'content',
		'value' => set_value('content'),
		'cols'	=> 50,
		'rows' => 5,
);

?>

<?php echo form_open($this->uri->uri_string()); ?>
<table>
	
	<tr>
		<td><?php echo form_label('Titre de la soirée', $name_event['id']); ?></td>
		<td><?php echo form_input($name_event); ?></td>
		<td style="color: red;"><?php echo form_error($name_event['name']); ?><?php echo isset($errors[$name_event['name']])?$errors[$name_event['name']]:''; ?></td>
	</tr>
	<tr>
		<td><?php echo form_label('Description', $content['id']); ?></td>
		<td><?php echo form_textarea($content); ?></td>
		<td style="color: red;"><?php echo form_error($content['name']); ?><?php echo isset($errors[$content['name']])?$errors[$content['name']]:''; ?></td>
	</tr>
	
	   
</table>

<?php echo form_submit('createParty', 'Valider'); ?>
<?php echo form_close(); ?>